<?php

/*
 * This is to save data for gynecologist.
 */
include '../../include/config.php';
mysql_query("INSERT INTO `baby_mother_gynac` (`sr`, `mother_id`, `g_doctor`, `g_address`, `g_city`, `g_country`, `g_tel`, `g_mob`, `g_first_visit`,`g_visits`, `g_last_visit`) VALUES (NULL, '".$_POST['mid']."', '".$_POST['g_doctor']."', '".$_POST['g_address']."', '".$_POST['g_city']."', '".$_POST['g_country']."', '".$_POST['g_tel']."', '".$_POST['g_mob']."', '".date('Y-m-d', strtotime($_POST['g_first_visit']))."', '".$_POST['g_visits']."', '".date('Y-m-d', strtotime($_POST['g_last_visit']))."');") or die(mysql_error()) ;
header('Location:../view/pre-pregnancy.php?menu=gynecologist');
?>
